///新闻列表
class NewsPageListResponseEntity {
  NewsList? data;
  String? message;
  int? status;
  int? total;

  NewsPageListResponseEntity({this.data, this.message, this.status, this.total});

  NewsPageListResponseEntity.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new NewsList.fromJson(json['data']) : null;
    message = json['message'];
    status = json['status'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = this.message;
    data['status'] = this.status;
    data['total'] = this.total;
    return data;
  }
}

class NewsList {
  List<NewsItem>? item;

  NewsList({this.item});

  NewsList.fromJson(Map<String, dynamic> json) {
    if (json['item'] != null) {
      item = [];
      json['item'].forEach((v) {
        item!.add(new NewsItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.item != null) {
      data['item'] = this.item!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class NewsItem {
  String? code;
  String? title;
  String? subTitle;
  String? abstract;
  String? icon;
  String? author;
  String? source;
  String? sourceUrl;
  String? state;
  String? editUser;
  String? releaseUser;
  String? columnCode;
  String? richText;
  String? richBool;
  String? fileTypeCode;
  String? fileTypeName;
  String? fileYear;
  String? fileNo;
  String? isRed;
  String? redTitle;
  String? addBold;
  String? addRed;
  String? fileName;
  String? releaseTime;
  String? fileTitle;
  String? editTime;
  String? columnName;
  String? editUserName;
  int? sortNo;
  String? createTime;
  int? hits;
  String? enColumn;
  String? plat;
  String? platType;
  Null informationAccs;

  NewsItem(
      {this.code,
        this.title,
        this.subTitle,
        this.abstract,
        this.icon,
        this.author,
        this.source,
        this.sourceUrl,
        this.state,
        this.editUser,
        this.releaseUser,
        this.columnCode,
        this.richText,
        this.richBool,
        this.fileTypeCode,
        this.fileTypeName,
        this.fileYear,
        this.fileNo,
        this.isRed,
        this.redTitle,
        this.addBold,
        this.addRed,
        this.fileName,
        this.releaseTime,
        this.fileTitle,
        this.editTime,
        this.columnName,
        this.editUserName,
        this.sortNo,
        this.createTime,
        this.hits,
        this.enColumn,
        this.plat,
        this.platType,
        this.informationAccs});

  NewsItem.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    title = json['title'];
    subTitle = json['subTitle'];
    abstract = json['abstract'];
    icon = json['icon'];
    author = json['author'];
    source = json['source'];
    sourceUrl = json['sourceUrl'];
    state = json['state'];
    editUser = json['editUser'];
    releaseUser = json['releaseUser'];
    columnCode = json['columnCode'];
    richText = json['richText'];
    richBool = json['richBool'];
    fileTypeCode = json['fileTypeCode'];
    fileTypeName = json['fileTypeName'];
    fileYear = json['fileYear'];
    fileNo = json['fileNo'];
    isRed = json['isRed'];
    redTitle = json['redTitle'];
    addBold = json['addBold'];
    addRed = json['addRed'];
    fileName = json['fileName'];
    releaseTime = json['releaseTime'];
    fileTitle = json['fileTitle'];
    editTime = json['editTime'];
    columnName = json['columnName'];
    editUserName = json['editUserName'];
    sortNo = json['sortNo'];
    createTime = json['createTime'];
    hits = json['hits'];
    enColumn = json['enColumn'];
    plat = json['plat'];
    platType = json['platType'];
    informationAccs = json['informationAccs'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['title'] = this.title;
    data['subTitle'] = this.subTitle;
    data['abstract'] = this.abstract;
    data['icon'] = this.icon;
    data['author'] = this.author;
    data['source'] = this.source;
    data['sourceUrl'] = this.sourceUrl;
    data['state'] = this.state;
    data['editUser'] = this.editUser;
    data['releaseUser'] = this.releaseUser;
    data['columnCode'] = this.columnCode;
    data['richText'] = this.richText;
    data['richBool'] = this.richBool;
    data['fileTypeCode'] = this.fileTypeCode;
    data['fileTypeName'] = this.fileTypeName;
    data['fileYear'] = this.fileYear;
    data['fileNo'] = this.fileNo;
    data['isRed'] = this.isRed;
    data['redTitle'] = this.redTitle;
    data['addBold'] = this.addBold;
    data['addRed'] = this.addRed;
    data['fileName'] = this.fileName;
    data['releaseTime'] = this.releaseTime;
    data['fileTitle'] = this.fileTitle;
    data['editTime'] = this.editTime;
    data['columnName'] = this.columnName;
    data['editUserName'] = this.editUserName;
    data['sortNo'] = this.sortNo;
    data['createTime'] = this.createTime;
    data['hits'] = this.hits;
    data['enColumn'] = this.enColumn;
    data['plat'] = this.plat;
    data['platType'] = this.platType;
    data['informationAccs'] = this.informationAccs;
    return data;
  }
}

///新闻详情
class NewsDetailModel {
  bool? has;
  NewsDetail? information;

  NewsDetailModel({this.has, this.information});

  NewsDetailModel.fromJson(Map<String, dynamic> json) {
    has = json['Has'];
    information = json['Information'] != null
        ? new NewsDetail.fromJson(json['Information'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['Has'] = this.has;
    if (this.information != null) {
      data['Information'] = this.information!.toJson();
    }
    return data;
  }
}

class NewsDetail {
  String? code;
  String? title;
  String? subTitle;
  String? abstract;
  String? icon;
  String? author;
  String? source;
  String? sourceUrl;
  String? state;
  String? editUser;
  String? releaseUser;
  String? columnCode;
  String? richText;
  String? richBool;
  String? fileTypeCode;
  String? fileTypeName;
  String? fileYear;
  String? fileNo;
  String? isRed;
  String? redTitle;
  String? addBold;
  String? addRed;
  String? fileName;
  String? releaseTime;
  String? fileTitle;
  String? editTime;
  String? columnName;
  String? editUserName;
  int? sortNo;
  String? createTime;
  int? hits;
  String? enColumn;
  String? plat;
  String? platType;
  List<InformationAccs>? informationAccs;

  NewsDetail(
      {this.code,
        this.title,
        this.subTitle,
        this.abstract,
        this.icon,
        this.author,
        this.source,
        this.sourceUrl,
        this.state,
        this.editUser,
        this.releaseUser,
        this.columnCode,
        this.richText,
        this.richBool,
        this.fileTypeCode,
        this.fileTypeName,
        this.fileYear,
        this.fileNo,
        this.isRed,
        this.redTitle,
        this.addBold,
        this.addRed,
        this.fileName,
        this.releaseTime,
        this.fileTitle,
        this.editTime,
        this.columnName,
        this.editUserName,
        this.sortNo,
        this.createTime,
        this.hits,
        this.enColumn,
        this.plat,
        this.platType,
        this.informationAccs});

  NewsDetail.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    title = json['title'];
    subTitle = json['subTitle'];
    abstract = json['abstract'];
    icon = json['icon'];
    author = json['author'];
    source = json['source'];
    sourceUrl = json['sourceUrl'];
    state = json['state'];
    editUser = json['editUser'];
    releaseUser = json['releaseUser'];
    columnCode = json['columnCode'];
    richText = json['richText'];
    richBool = json['richBool'];
    fileTypeCode = json['fileTypeCode'];
    fileTypeName = json['fileTypeName'];
    fileYear = json['fileYear'];
    fileNo = json['fileNo'];
    isRed = json['isRed'];
    redTitle = json['redTitle'];
    addBold = json['addBold'];
    addRed = json['addRed'];
    fileName = json['fileName'];
    releaseTime = json['releaseTime'];
    fileTitle = json['fileTitle'];
    editTime = json['editTime'];
    columnName = json['columnName'];
    editUserName = json['editUserName'];
    sortNo = json['sortNo'];
    createTime = json['createTime'];
    hits = json['hits'];
    enColumn = json['enColumn'];
    plat = json['plat'];
    platType = json['platType'];
    if (json['informationAccs'] != null) {
      informationAccs = [];
      json['informationAccs'].forEach((v) {
        informationAccs!.add(new InformationAccs.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['title'] = this.title;
    data['subTitle'] = this.subTitle;
    data['abstract'] = this.abstract;
    data['icon'] = this.icon;
    data['author'] = this.author;
    data['source'] = this.source;
    data['sourceUrl'] = this.sourceUrl;
    data['state'] = this.state;
    data['editUser'] = this.editUser;
    data['releaseUser'] = this.releaseUser;
    data['columnCode'] = this.columnCode;
    data['richText'] = this.richText;
    data['richBool'] = this.richBool;
    data['fileTypeCode'] = this.fileTypeCode;
    data['fileTypeName'] = this.fileTypeName;
    data['fileYear'] = this.fileYear;
    data['fileNo'] = this.fileNo;
    data['isRed'] = this.isRed;
    data['redTitle'] = this.redTitle;
    data['addBold'] = this.addBold;
    data['addRed'] = this.addRed;
    data['fileName'] = this.fileName;
    data['releaseTime'] = this.releaseTime;
    data['fileTitle'] = this.fileTitle;
    data['editTime'] = this.editTime;
    data['columnName'] = this.columnName;
    data['editUserName'] = this.editUserName;
    data['sortNo'] = this.sortNo;
    data['createTime'] = this.createTime;
    data['hits'] = this.hits;
    data['enColumn'] = this.enColumn;
    data['plat'] = this.plat;
    data['platType'] = this.platType;
    if (this.informationAccs != null) {
      data['informationAccs'] =
          this.informationAccs!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class InformationAccs {
  String? code;
  String? informationCode;
  String? accName;
  String? accType;
  String? url;
  int? sortNo;
  String? editTime;
  String? type;

  InformationAccs(
      {this.code,
        this.informationCode,
        this.accName,
        this.accType,
        this.url,
        this.sortNo,
        this.editTime,
        this.type});

  InformationAccs.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    informationCode = json['informationCode'];
    accName = json['accName'];
    accType = json['accType'];
    url = json['url'];
    sortNo = json['sortNo'];
    editTime = json['editTime'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['informationCode'] = this.informationCode;
    data['accName'] = this.accName;
    data['accType'] = this.accType;
    data['url'] = this.url;
    data['sortNo'] = this.sortNo;
    data['editTime'] = this.editTime;
    data['type'] = this.type;
    return data;
  }
}
